package com.kaikeba.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by HMF on 2021/06/16 14:56
 */

/**
 * 这里用来组合数据，因为两个表用相同的字段，所以我暂时想到了这个方法
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LinkData {
    // kkb_tpye 表字段
    private int tid;
    private String name;
    private int tsort;

    // kkb_link 表字段
    private int lid;
    private int type_id;
    private int icon;
    private String title;
    private String description;
    private int count;
    private int lsort;
    private String content;

    @Override
    public String toString() {
        return "Links{" +
                "tid=" + tid +
                ", name='" + name + '\'' +
                ", tsort=" + tsort +
                ", lid=" + lid +
                ", type_id=" + type_id +
                ", icon=" + icon +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", count=" + count +
                ", lsort=" + lsort +
                ", content='" + content + '\'' +
                '}';
    }
}
